//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.carhailing.common.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
@Data
@TableName("coupons_schedule_and_coupons_relation")
public class CouponsRelation {
    @TableId("coupons_schedule_and_coupons_relation_id")
    private Long couponsRelationId;
    @TableField("coupon_active_id")
    private Long couponActiveId;
    @TableField("coupon_id")
    private Long couponId;
    @TableField("coupon_schedule_id")
    private Long couponScheduleId;
    @TableField("coupon_money")
    private BigDecimal couponMoney;
    @TableField("coupons_total")
    private Integer couponsTotal;
    @TableField("coupons_claimed")
    private Integer couponsClaimed;

    public CouponsRelation() {
    }

    public Long getCouponsRelationId() {
        return this.couponsRelationId;
    }

    public Long getCouponActiveId() {
        return this.couponActiveId;
    }

    public Long getCouponId() {
        return this.couponId;
    }

    public Long getCouponScheduleId() {
        return this.couponScheduleId;
    }

    public BigDecimal getCouponMoney() {
        return this.couponMoney;
    }

    public Integer getCouponsTotal() {
        return this.couponsTotal;
    }

    public Integer getCouponsClaimed() {
        return this.couponsClaimed;
    }

    public void setCouponsRelationId(final Long couponsRelationId) {
        this.couponsRelationId = couponsRelationId;
    }

    public void setCouponActiveId(final Long couponActiveId) {
        this.couponActiveId = couponActiveId;
    }

    public void setCouponId(final Long couponId) {
        this.couponId = couponId;
    }

    public void setCouponScheduleId(final Long couponScheduleId) {
        this.couponScheduleId = couponScheduleId;
    }

    public void setCouponMoney(final BigDecimal couponMoney) {
        this.couponMoney = couponMoney;
    }

    public void setCouponsTotal(final Integer couponsTotal) {
        this.couponsTotal = couponsTotal;
    }

    public void setCouponsClaimed(final Integer couponsClaimed) {
        this.couponsClaimed = couponsClaimed;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof CouponsRelation)) {
            return false;
        } else {
            CouponsRelation other = (CouponsRelation)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label95: {
                    Object this$couponsRelationId = this.getCouponsRelationId();
                    Object other$couponsRelationId = other.getCouponsRelationId();
                    if (this$couponsRelationId == null) {
                        if (other$couponsRelationId == null) {
                            break label95;
                        }
                    } else if (this$couponsRelationId.equals(other$couponsRelationId)) {
                        break label95;
                    }

                    return false;
                }

                Object this$couponActiveId = this.getCouponActiveId();
                Object other$couponActiveId = other.getCouponActiveId();
                if (this$couponActiveId == null) {
                    if (other$couponActiveId != null) {
                        return false;
                    }
                } else if (!this$couponActiveId.equals(other$couponActiveId)) {
                    return false;
                }

                Object this$couponId = this.getCouponId();
                Object other$couponId = other.getCouponId();
                if (this$couponId == null) {
                    if (other$couponId != null) {
                        return false;
                    }
                } else if (!this$couponId.equals(other$couponId)) {
                    return false;
                }

                label74: {
                    Object this$couponScheduleId = this.getCouponScheduleId();
                    Object other$couponScheduleId = other.getCouponScheduleId();
                    if (this$couponScheduleId == null) {
                        if (other$couponScheduleId == null) {
                            break label74;
                        }
                    } else if (this$couponScheduleId.equals(other$couponScheduleId)) {
                        break label74;
                    }

                    return false;
                }

                label67: {
                    Object this$couponsTotal = this.getCouponsTotal();
                    Object other$couponsTotal = other.getCouponsTotal();
                    if (this$couponsTotal == null) {
                        if (other$couponsTotal == null) {
                            break label67;
                        }
                    } else if (this$couponsTotal.equals(other$couponsTotal)) {
                        break label67;
                    }

                    return false;
                }

                Object this$couponsClaimed = this.getCouponsClaimed();
                Object other$couponsClaimed = other.getCouponsClaimed();
                if (this$couponsClaimed == null) {
                    if (other$couponsClaimed != null) {
                        return false;
                    }
                } else if (!this$couponsClaimed.equals(other$couponsClaimed)) {
                    return false;
                }

                Object this$couponMoney = this.getCouponMoney();
                Object other$couponMoney = other.getCouponMoney();
                if (this$couponMoney == null) {
                    if (other$couponMoney != null) {
                        return false;
                    }
                } else if (!this$couponMoney.equals(other$couponMoney)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof CouponsRelation;
    }

    public int hashCode() {
        int result = 1;
        Object $couponsRelationId = this.getCouponsRelationId();
        result = result * 59 + ($couponsRelationId == null ? 43 : $couponsRelationId.hashCode());
        Object $couponActiveId = this.getCouponActiveId();
        result = result * 59 + ($couponActiveId == null ? 43 : $couponActiveId.hashCode());
        Object $couponId = this.getCouponId();
        result = result * 59 + ($couponId == null ? 43 : $couponId.hashCode());
        Object $couponScheduleId = this.getCouponScheduleId();
        result = result * 59 + ($couponScheduleId == null ? 43 : $couponScheduleId.hashCode());
        Object $couponsTotal = this.getCouponsTotal();
        result = result * 59 + ($couponsTotal == null ? 43 : $couponsTotal.hashCode());
        Object $couponsClaimed = this.getCouponsClaimed();
        result = result * 59 + ($couponsClaimed == null ? 43 : $couponsClaimed.hashCode());
        Object $couponMoney = this.getCouponMoney();
        result = result * 59 + ($couponMoney == null ? 43 : $couponMoney.hashCode());
        return result;
    }

    public String toString() {
        return "CouponsRelation(couponsRelationId=" + this.getCouponsRelationId() + ", couponActiveId=" + this.getCouponActiveId() + ", couponId=" + this.getCouponId() + ", couponScheduleId=" + this.getCouponScheduleId() + ", couponMoney=" + this.getCouponMoney() + ", couponsTotal=" + this.getCouponsTotal() + ", couponsClaimed=" + this.getCouponsClaimed() + ")";
    }
}
